<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>

  </style>
  <script src="https://cdn.jsdelivr.net/npm/zrender@4.3.0/dist/zrender.js"></script>
</head>
<body>
  <div class="container" style="width:800px;height:800px;"></div>
  <script>
    const zr = zrender.init(document.getElementById('container'));
    const rect = new zrender.Rect({
      shape: {
        x: 0,
        y: 0,
        width: 50,
        height: 50
      },
      style:{
        fill: 'red',
        lineWidth: 0
      }
    });

    const line = new zrender.Polyline({
      shape: {
        points: [
          [100, 100],
          [250, 75],
          [300, 100]
        ]
      },
      style:{
        fill: 'red',
        lineWidth: 1
      }
    });
    zr.add(rect);
  </script>
</body>
</html>